<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sj" tagdir="/WEB-INF/tags/spring-jquery-tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<link href="<c:url value='/css/tablesorter.css' />" rel="stylesheet" type="text/css"/>
<link href="<c:url value='/css/jquery.tablesorter.pager.css' />" rel="stylesheet" type="text/css"/>
<link href="<c:url value='/css/dhtmlxcombo_view.css' />" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
	$(document).ready(function() {
		$('#editCipeprojectForm input, #editCipeprojectForm select').keypress(function(e) {
      		if(e.which == 13) {      
            	jQuery('#loginFormSubmit').click();
            	return false;
       		}
   		});
		
		  $('.edit-partnergrant-link').click(function() {
			loadDiv('content', 'showEditPartnergrantView.do?id=' + $(this).attr('cipeprojectId'));
		});

	$('.edit-cipeprojectsummary-link').click(function() {
		loadDiv('content', 'showCipeprojectSummary.do?id=' + $(this).attr('cipeprojectId'));
	});	
	//$(".tablesorter").tablesorter().tablesorterPager({container: $("#pager")});	       
	
	
		$('#pageTitle').text('<spring:message code="findCipeproject.heading" />');
		
		
	$('.view-knowledgemanagementsearch-link').click(function() {
		loadDiv('content', 'findKnowledgeManagement.do');
	});

	
	$('.close-button').click(function() {
		loadDiv('content', 'refreshDashboard.do');
     });
	});
   
   
</script>
<div id="findCipeprojectDiv">
	<form:form name="editCipeprojectForm" id="editCipeprojectForm" action="findResultCipeproject.do" method="GET" modelAttribute="cipeproject">
		<form:hidden path="id" />
		<div class="main_form">
			<div class="form_head">
	    		<a href="#" class="close-button gray_btn floatR">Close Form</a>
	    		<a href="#" class="view-knowledgemanagementsearch-link blue_btn floatR"><spring:message code="findPartnergrant.link.viewKnowledgeManagement" /></a>
	    		<br class="clear" />
	    	</div>
	    	<div class="form_cont">
				<table cellspacing="5" width="100%">

					<tr class="row">
						<td class="input-field" colspan="5">
							<%@ include file="/common/messages.jsp" %>
						</td>
					</tr>
					
					
			</table>
				<div id="cipeprojectListDiv" class="hastable" style="overflow: auto">
				 <c:if test="${!empty initiateSearch }">
                    <%@ include file="/WEB-INF/jsps/searchResultFindCiproject.jsp" %>				
                </c:if>
                </div>
			</div>
		</div>				
	</form:form>
</div>